# 作者:路伯阳
# 2025年02月28日14时46分31秒
# 846151791@qq.com

def use_len_count():
    name_list = ["zhangsan", "lisi", "wangwu", 'wangxiaoer', 'wangxingyan', 'laoda', 'laoer', 'laosan']
    print(name_list)
    print(len(name_list))
    print(name_list.count("zhangsan"))


def use_sort():
    name_list = ['zahngsan', 'lisi', 'wangwu','wangxiaoer']
    num_list = [6, 8, 4, 1, 10]

    name_list.sort()
    num_list.sort(reverse=True)
    print(name_list)
    print(num_list)

use_sort()

def use_reverse():
    name_list = ['zahngsan', 'lisi', 'wangwu''wangxiaoer']
    num_list = [6, 8, 4, 1, 10]
    name_list.reverse()
    num_list.reverse()
    print(name_list)
    print(num_list)
use_reverse()

def use_iter():
    name_list = ['zahngsan', 'lisi', 'wangwu','wangxiaoer']
    for name in name_list:
        print(name,end=' ')

    i=0
    while i<len(name_list):
        print(name_list[i],end=' ')
        i+=1
    print()
use_iter()

num_list=[i for i in range(100)]
print(num_list)
